#!/bin/bash
#

df -Th | grep "^/dev" | while read line;do
	usage=$(echo $line | awk '{print $6}'| awk -F% '{print $1}')
	if [ $usage -gt 10 ];then
		disk_name=$(echo $line | awk '{print $7}')
		total_size=$(echo $line | awk '{print $3}')
		free_size=$(echo $line | awk '{print $5}')
		echo "磁盘名称：$disk_name,总容量：$total_size,剩余容量：$free_size"
	fi
done
